<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Token;
use app\common\wechat\MuWechat;
use app\common\wechat\Wechat;
use fast\Date;
use redis\Message;
use redis\Predis;
use think\Log;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {
        $this->assign('beian',config('beian'));
        return $this->view->fetch();
    }


    public function wechat($token){

        $wx=new MuWechat($token);
        $wx->handle();
    }

    function test(){
        $now=time()-3700;
        echo Date::human_cn($now);
    }

}
